<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
.tb{
	width:760px;
	text-align:center;
	font-family:Verdana, Geneva, sans-serif;
}

.tb tr th{
	color:#000;
}

.tb tr:hover td{
	color:#FF0080;
}
a{
	text-decoration:none;
	color:#000;
}
a:hover{
	color:#FF0080;
}
.error{
	color:red;
}
</style>
<style media="print">
#print_button{
display:none;
}
</style>
<span style="float:right; margin-right:10px">
	<table align="right" style="margin-right:50px">
 <tr>
 	
 	<td>
 <input type="button" id="print_button"  value="In trang này" onclick="window.print()"/>
 
 	</td>
    <td>
 
 </tr>
</table> 
&nbsp;&nbsp;&nbsp;
</span>
<div style="margin-bottom:3px">&nbsp;</div>
<?php 
require("connect.php");
	echo " Ngày in: ".date('d/m/Y')."
			
			<p style='text-align:center'>***</p>";
			$list=mysql_query("SELECT C.MA_TOUR,TEN_KHACH_HANG, TEN_TOUR, DIA_CHI,SO_DIEN_THOAI, CMND, NGAY_DAT_TOUR FROM qldl_khach_hang_dat_tour a, qldl_chi_tiet_dat_tour b, qldl_tour c WHERE a.email=b.email and b.ma_tour=c.ma_tour AND C.MA_TOUR='".$_GET['page']."'");
			

		
	echo "<div style='font-size:30; text-align:center;'><h3>Thông tin khách hàng đặt tour</h3></div>";
     echo "<table align='center' class='table' border='1' cellpadding='0' cellspacing='0'>";
		echo"
			<th>MATOUR</th>
			<th>Tên tour</th>
			<th>Họ tên khách hàng</th>	
			<th>Địa chỉ khách hàng</th>
			<th>Số điện thoại</th>
            <th>CMND</th>
             <th>Ngày đặt tour</th>
			 
			";			
	while($row=mysql_fetch_array($list)){
		echo "<tr >";
			echo "<td >$row[MA_TOUR]</td>";
			echo "<td >$row[TEN_TOUR]</td>";
			echo "<td >$row[TEN_KHACH_HANG]</td>";
			echo "<td >$row[DIA_CHI]</td>";
			echo "<td >$row[SO_DIEN_THOAI]</td>";
			echo "<td >$row[CMND]</td>";
			echo "<td >$row[NGAY_DAT_TOUR]</td>";
			
			echo "<td ></td>";
			echo "</tr>";
			
	}
		echo"</table>";
		
		echo "</br><p align='right'><strong>Cần Thơ, Ngày....Tháng....Năm 20....</strong></p>";
    ?>